package com.yehuishou.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.yehuishou.dao.ReceiverAddressDao;
import com.yehuishou.pojo.ReceiverAddress;
import com.yehuishou.service.ReceiverAddressService;

@Service
public class ReceiverAddressServiceImpl implements ReceiverAddressService {
	
	
	@Autowired
	private ReceiverAddressDao receiverAddressDao;
	
	@Override
	public List<ReceiverAddress> findAll(Integer sreceiverid) {
			List<ReceiverAddress> receiver = receiverAddressDao.findAll(sreceiverid);
		return receiver;
	}

	@Override
	public Integer updateAddress(ReceiverAddress receiverAddress) {
		Integer integer  = receiverAddressDao.updateAddress(receiverAddress);
		return integer;
	}

	@Override
	public ReceiverAddress findById(Integer sreceiverid) {
		ReceiverAddress rd  = receiverAddressDao.findById(sreceiverid);
		return rd;
	}

}
